/**
 * Sphere inherits from Circle3D it has the methods for calculating
 * surface area and volume.
 */

import java.util.*;
public class Sphere extends Circle3D {
    //constructor methods
    public Sphere(double r) {
        super.setRadius(r);
    }
    public Sphere() {
        super.setRadius(0.0);
    }
    //mutator methods
    public double calcSurfaceArea() {
        return 4 * Math.PI * super.getRadius() * super.getRadius();
    }
    public double calcVolume() {
        return (4.0/3.0) * Math.PI * super.getRadius() * super.getRadius() * super.getRadius();
    }
}